﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.DomainModels;
using VOL.SmartHealthcare.Infrastructure;
using VOL.Team.TeamIServices.SmartLargeScreenManagement.IServices;

namespace VOL.Team.TeamIServices.SmartLargeScreenManagement.Services
{
    public class SmartLargeScreenService: ISmartLargeScreenService
    {
        private readonly IBaseRepository<Teamledger> _teamledgerbaseRepository;

        public SmartLargeScreenService(IBaseRepository<Teamledger> teamledgerbaseRepository)
        {
            _teamledgerbaseRepository = teamledgerbaseRepository;
        }
        /// <summary>
        /// 查询班组台账
        /// </summary>
        /// <returns></returns>
        public IQueryable<Teamledger> GetTeamledger()
        {
            try
            {
                var teamledger = _teamledgerbaseRepository.GetAll();
                return teamledger;
            }
            catch (Exception)
            {
                throw;
            }
        }
    }
}
